<script>
	export default {
		onLaunch: function (options) {
			console.log(options)
			// #ifdef WEB
			if (options.query.pid) {
				this.$store.commit('setData', { key: 'pid', value: options.query.pid })
				this.$store.commit('setData', { key: 'commonAgrs', value: {
					pid: options.query.pid
				}})
			}
			// #endif
			// #ifdef MP-ALIPAY || MP-WEIXIN
			if (options.query?.fromPid) {
				this.$store.commit('setData', { key: 'pid', value: options.query.fromPid })
			}
			this.$store.dispatch('user/refreshLoginStatus')
			// #endif
		}
	}
</script>

<style lang="scss">
/*每个页面公共css */
// @import 'uview-ui/index.scss';
// @import '@dcloudio/uni-ui/lib/uni-scss/index.scss';
@import '@climblee/uv-ui/index.scss';
@import '@/static/styles/font.css';
// 设置整个项目的背景色
page {
	/* #ifdef MP-ALIPAY || MP-KUAISHOU */
  height: 100vh;
	/* #endif */
	/* #ifndef MP-ALIPAY || MP-KUAISHOU */
	height: 100%;
	/* #endif */
	line-height: normal;
	color: #2c2c2c;
	background-color: #f7f7f7;
}
image {
	border: 0;
	vertical-align: top;
}
input {
	display: block;
	padding: 0;
	background: transparent;
}
button {
	padding: 0;
	margin: 0;
	width: auto;
	height: auto;
	line-height: normal;
	border: 0;
	background: transparent;
	/* #ifdef MP-KUAISHOU */
	box-shadow: none;
	/* #endif */
	&::after {
		width: 0;
		height: 0;
		border: 0;
	}
}
</style>
